
<template>
    <Button type="text" size="small"  v-permission="'btnDelete'"   icon="trash-a" @click="clickHandler"  :disabled="status === '已复核' || userName != creator"></Button>
    <!--<Button type="text" size="small"  v-permission="'btnDelete'"   icon="trash-a" @click="clickHandler"></Button>-->
</template>

<script>
  export default {
    accessLabel: '删除',
    accessKey: 'btnDelete',
    props:{
      status:String,
      userName: String,
      creator: String,
      require:true
    },
    methods: {
      clickHandler (e) {
        this.$emit('delClick', e);
      }
    }
  };
</script>
